﻿#include <cstdio>
#include <iostream>
#include "zipper.h"
#include "unzipper.h"
#include <vector>
#include <fstream>
#include <ostream>
#include <zlib.h>
#include <string>
int main()
{
    printf("%s 向你问好!\n", "zipper_demo_arm");


    zipper::Zipper zipper1("ziptest.zip");
    std::ofstream test1("test1.txt");
    test1 << "test file compression";
    test1.flush();
    test1.close();

    std::ifstream test1stream("test1.txt");

    zipper1.add(test1stream, "test1.txt");

    test1stream.close();
    zipper1.close();

    std::remove("test1.txt");

    return 0;
}